package com.itrus.spring.aop;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cglib.core.DebuggingClassWriter;
import org.springframework.context.annotation.EnableAspectJAutoProxy;

/**
 * @author peigen
 * @since 2024/10/8
 */

@SpringBootApplication
@EnableAspectJAutoProxy
public class AopApplication {

    public static void main(String[] args) {
        System.setProperty(DebuggingClassWriter.DEBUG_LOCATION_PROPERTY, "target/cglib");
        System.getProperties().put( "sun.misc.ProxyGenerator.saveGeneratedFiles" , "true" );

        SpringApplication.run(AopApplication.class, args);
    }
}